<?php

namespace common\models\datas;

use Yii;

/**
 * This is the model class for table "{{%customer_field_config_relation}}".
 *
 * @property integer $id
 * @property integer $customer_field_config_id
 * @property integer $site_id
 * @property string $module
 * @property integer $status
 */
class CustomerFieldConfigRelation extends \common\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%customer_field_config_relation}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['customer_field_config_id', 'site_id', 'status'], 'integer'],
            [['module'], 'string', 'max' => 20],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('zhtfrontend', 'ID'),
            'customer_field_config_id' => Yii::t('zhtfrontend', '配置项表id'),
            'site_id' => Yii::t('zhtfrontend', '分店id'),
            'module' => Yii::t('zhtfrontend', '针对模块'),
            'status' => Yii::t('zhtfrontend', '状态'),
        ];
    }
}
